// -----------------------------------------------------------------------
//  <copyright file="ISlaveDatabaseSelector.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-11-07 15:00</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.EntityFrameworkCore;

/// <summary>
/// 定义从数据库选择功能
/// </summary>
public interface ISlaveDatabaseSelector
{
    /// <summary>
    /// 获取 名称
    /// </summary>
    string Name { get; }

    /// <summary>
    /// 从所有从数据库中选择一个
    /// </summary>
    SlaveDatabaseOptions Select(SlaveDatabaseOptions[] slaves);
}
